﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChoiceManage.aspx.cs" Inherits="Whir_System_Module_Config_ChoiceManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td colspan="4" height="23" class="form_title">
                    <strong>
                        <asp:Label ID="ltTitle" runat="server" Text="" /></strong>
                </td>
            </tr>
            <tr>
                <td height="23" align="center" class="grid_Title">
                    选项值
                </td>
                <td height="23" align="center" class="grid_Title">
                    默认值
                </td>
                <td height="23" align="center" class="grid_Title">
                    是否启用
                </td>
                <td height="23" align="center" class="grid_Title">
                    管理操作
                </td>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr>
                        <td height="23" align="center" class="grid_td">
                            <%# Eval("choiceText")%>
                        </td>
                        <td height="23" align="center" class="grid_td">
                            <%# (bool)Eval("IsDafaultValue") == true ? "<b>√</b>" : "<span style=\"color:red;\"><b>×</b></span>"%>
                        </td>
                        <td height="23" align="center" class="grid_td">
                            <%# (bool)Eval("IsUse") == true ? "<b>√</b>" : "<span style=\"color:red;\"><b>×</b></span>"%>
                        </td>
                        <td height="23" align="center" class="grid_td">
                            <a href='Choice.aspx?Action=Modify&ChoiceID=<%# Eval("choiceID") %>&TypeID=<%# Eval("choiceTypeID") %>'>
                                编辑</a>&nbsp;|&nbsp; <a href='Choice.aspx?Action=Delete&ChoiceID=<%# Eval("choiceID") %>&TypeID=<%# Eval("choiceTypeID") %>'>
                                    删除</a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加选项" CssClass="btn_default" />&nbsp;&nbsp;<asp:Button
            ID="btnCancel" runat="server" Text="返回" CssClass="btn_default" OnClick="btnCancel_Click" />
    </form>
</body>
</html>
